package com.weilai.service.serviceImpl;

import com.weilai.dao.VideosDao;
import com.weilai.dao.ViewsDao;
import com.weilai.domain.Views;
import com.weilai.service.ViewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ViewsServiceImpl implements ViewsService {
    @Autowired
    private ViewsDao viewsDao;

    @Override
    public List<Views> getViewsByUserId(int userId) {
        return viewsDao.selectByUserId(userId);
    }
}
